version=1.1

# 构建
docker build -t pangolin:"client_$version" -f pangolin-headless-client/Dockerfile . || exit
docker build -t pangolin:"server_$version" -f pangolin-headless-server/Dockerfile . || exit

# 上传
docker tag pangolin:"client_$version" ccr.ccs.tencentyun.com/shaco_work/pangolin:"client_$version"
docker push ccr.ccs.tencentyun.com/shaco_work/pangolin:"client_$version"

docker tag pangolin:"server_$version" ccr.ccs.tencentyun.com/shaco_work/pangolin:"server_$version"
docker push ccr.ccs.tencentyun.com/shaco_work/pangolin:"server_$version"